﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace WindowsFormsApplication5
{
    public class Tank
    {
       // public enum direction { left = 1, right = 2, up = 3, down = 4 };
        private int direct;
        private Rectangle _tank;
        public Rocket rocket;
      //  public int angle;
        private Data data;
        private byte life;

        public Rectangle tank
        {
            get { return _tank; }
            set { _tank = value; }
        }

        public int Direct
        {
            get { return direct; }
            set { direct = value; }
        }
        public byte Life
        {
            get { return life; }
            set
            {
                life = value;
            }
        }
        private byte type;
        public byte Type
        {
            get { return type; }
            set
            {
                type = value;
            }
        }
        private int mytank;
        public int MyTank
        {
            get { return mytank; }
            private set {}
        }

        public List<Point> trace;

        public Tank()
        {
            data = new Data();
            _tank = new Rectangle();
            _tank.Size = new Size(data.tank_width, data.tank_height);
            _tank.Location = new Point(30, 110);
            direct = data.right;
            mytank = 1;
            life = 3;
            trace = new List<Point>();

        }

        public Tank(int x, int y, byte life,byte type)
        {
            data = new Data();
            _tank = new Rectangle();
            _tank.Size = new Size(data.tank_width, data.tank_height);
            _tank.Location = new Point(x, y);
            direct = data.right;
            this.life = life;
            mytank = 0;
            this.type = type;
            trace = new List<Point>();
        }
    }
}
